<template>
  <div id="app">
    <Hearder />
    <!-- 顶级路由占位 -->
    <router-view></router-view>
    <Footer v-if="$route.meta.isShowFlooter === 'hide' ? false : true" />
  </div>
</template>

<script>
import Hearder from './components/Hearder/Hearder.vue'
import Footer from './components/Footer/Footer.vue'
import { mapActions } from 'vuex'
export default {
  name: 'App',
  methods: {
    ...mapActions('goodsCategory', ['get_goodsCategoryList']),
    ...mapActions('login', ['get_userInfo']),
  },
  mounted() {
    // 应用挂在 获取数据
    this.get_goodsCategoryList()
    // 获取用户详情信息
    // this.get_userInfo()
  },
  components: {
    Hearder,
    Footer,
  },
}
</script>

<style lang="css">
body {
  padding-right: 0px !important;
}
</style>
